#ifndef __LIB_GUI_MOUSE_H
#define __LIB_GUI_MOUSE_H

#include"gui_spirit.h"
#include<uview.h>

typedef struct 
{
    char *path;
    int off_x;
    int off_y;
}gui_cursor_info_t;

int gui_mouse_motion(gui_spirit_t *spirit,int x,int y);
int gui_mouse_btn_down(gui_spirit_t *spirit,int btn,int x,int y);
int gui_mouse_btn_up(gui_spirit_t *spirit,int btn,int x,int y);
int gui_mouse_load_cursor(int view,char *path,uview_mouse_status_t status,int off_x,int off_y);
void gui_mouse_load_cursors(int view,const char *path);

#endif 